//
// Created by Tony on 2024/1/14.
//

#ifndef FILE_READER_SOURCE_FILE_H
#define FILE_READER_SOURCE_FILE_H

#include <string>
#include <vector>

class SourceFile {

    std::string fileName;
    std::vector<std::string> lines;

public:
    explicit SourceFile(std::string fileName) : fileName(std::move(fileName)) {}

    const std::string& getFileName() const { return fileName; }

    void addLine(const std::string& line) { lines.push_back(line); }

    size_t size() const { return lines.size(); }

    const std::vector<std::string>& getLines() const { return lines; }
};

#endif // FILE_READER_SOURCE_FILE_H
